/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Other Service Providers Provider Codes Member2</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see org.hl7.v3.V3Package#getOtherServiceProvidersProviderCodesMember2()
 * @model extendedMetaData="name='OtherServiceProvidersProviderCodes_._member_._2'"
 * @generated
 */
public enum OtherServiceProvidersProviderCodesMember2 implements Enumerator {
	/**
	 * The '<em><b>170000000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_170000000X_VALUE
	 * @generated
	 * @ordered
	 */
	_170000000X(0, "_170000000X", "170000000X"),

	/**
	 * The '<em><b>171100000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_171100000X_VALUE
	 * @generated
	 * @ordered
	 */
	_171100000X(1, "_171100000X", "171100000X"),

	/**
	 * The '<em><b>172A00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_172A00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_172A00000X(2, "_172A00000X", "172A00000X"),

	/**
	 * The '<em><b>176P00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_176P00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_176P00000X(3, "_176P00000X", "176P00000X"),

	/**
	 * The '<em><b>175L00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_175L00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_175L00000X(4, "_175L00000X", "175L00000X"),

	/**
	 * The '<em><b>173000000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_173000000X_VALUE
	 * @generated
	 * @ordered
	 */
	_173000000X(5, "_173000000X", "173000000X"),

	/**
	 * The '<em><b>177F00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_177F00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_177F00000X(6, "_177F00000X", "177F00000X"),

	/**
	 * The '<em><b>176B00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_176B00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_176B00000X(7, "_176B00000X", "176B00000X"),

	/**
	 * The '<em><b>175M00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_175M00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_175M00000X(8, "_175M00000X", "175M00000X"),

	/**
	 * The '<em><b>175F00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_175F00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_175F00000X(9, "_175F00000X", "175F00000X"),

	/**
	 * The '<em><b>170100000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_170100000X_VALUE
	 * @generated
	 * @ordered
	 */
	_170100000X(10, "_170100000X", "170100000X");

	/**
	 * The '<em><b>170000000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>170000000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_170000000X
	 * @model literal="170000000X"
	 * @generated
	 * @ordered
	 */
	public static final int _170000000X_VALUE = 0;

	/**
	 * The '<em><b>171100000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>171100000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_171100000X
	 * @model literal="171100000X"
	 * @generated
	 * @ordered
	 */
	public static final int _171100000X_VALUE = 1;

	/**
	 * The '<em><b>172A00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>172A00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_172A00000X
	 * @model literal="172A00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _172A00000X_VALUE = 2;

	/**
	 * The '<em><b>176P00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>176P00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_176P00000X
	 * @model literal="176P00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _176P00000X_VALUE = 3;

	/**
	 * The '<em><b>175L00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>175L00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_175L00000X
	 * @model literal="175L00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _175L00000X_VALUE = 4;

	/**
	 * The '<em><b>173000000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>173000000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_173000000X
	 * @model literal="173000000X"
	 * @generated
	 * @ordered
	 */
	public static final int _173000000X_VALUE = 5;

	/**
	 * The '<em><b>177F00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>177F00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_177F00000X
	 * @model literal="177F00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _177F00000X_VALUE = 6;

	/**
	 * The '<em><b>176B00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>176B00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_176B00000X
	 * @model literal="176B00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _176B00000X_VALUE = 7;

	/**
	 * The '<em><b>175M00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>175M00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_175M00000X
	 * @model literal="175M00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _175M00000X_VALUE = 8;

	/**
	 * The '<em><b>175F00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>175F00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_175F00000X
	 * @model literal="175F00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _175F00000X_VALUE = 9;

	/**
	 * The '<em><b>170100000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>170100000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_170100000X
	 * @model literal="170100000X"
	 * @generated
	 * @ordered
	 */
	public static final int _170100000X_VALUE = 10;

	/**
	 * An array of all the '<em><b>Other Service Providers Provider Codes Member2</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final OtherServiceProvidersProviderCodesMember2[] VALUES_ARRAY =
		new OtherServiceProvidersProviderCodesMember2[] {
			_170000000X,
			_171100000X,
			_172A00000X,
			_176P00000X,
			_175L00000X,
			_173000000X,
			_177F00000X,
			_176B00000X,
			_175M00000X,
			_175F00000X,
			_170100000X,
		};

	/**
	 * A public read-only list of all the '<em><b>Other Service Providers Provider Codes Member2</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<OtherServiceProvidersProviderCodesMember2> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Other Service Providers Provider Codes Member2</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static OtherServiceProvidersProviderCodesMember2 get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			OtherServiceProvidersProviderCodesMember2 result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Other Service Providers Provider Codes Member2</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static OtherServiceProvidersProviderCodesMember2 getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			OtherServiceProvidersProviderCodesMember2 result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Other Service Providers Provider Codes Member2</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static OtherServiceProvidersProviderCodesMember2 get(int value) {
		switch (value) {
			case _170000000X_VALUE: return _170000000X;
			case _171100000X_VALUE: return _171100000X;
			case _172A00000X_VALUE: return _172A00000X;
			case _176P00000X_VALUE: return _176P00000X;
			case _175L00000X_VALUE: return _175L00000X;
			case _173000000X_VALUE: return _173000000X;
			case _177F00000X_VALUE: return _177F00000X;
			case _176B00000X_VALUE: return _176B00000X;
			case _175M00000X_VALUE: return _175M00000X;
			case _175F00000X_VALUE: return _175F00000X;
			case _170100000X_VALUE: return _170100000X;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private OtherServiceProvidersProviderCodesMember2(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //OtherServiceProvidersProviderCodesMember2
